﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Matricula.aspx.cs" Inherits="SIGEE_v0._1.Matriculas.Matricula" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 165px;
        }
        .style2
        {
            width: 144px;
        }
        .style3
        {
            width: 358px;
        }
        .style4
        {
            width: 357px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="col_04">
        <div class="clear hideSkiplink">
            <h2 class="debito_auto">
                REGISTRAR MATRICULA</h2>
        </div>
    </div>
    <asp:UpdatePanel ID="updCabecera" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        Información Personal
                    </td>
                    <td class="style3">
                        &nbsp;
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Nombres
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtNombres" runat="server" Width="250px" MaxLength="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtNombres" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                        
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Apellidos
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtApellidos" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtApellidos" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        DNI
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtDni" runat="server" MaxLength="8"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtDni" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txtDni" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                    <td class="style2">
                        Fecha de Nacimiento
                    </td>
                    <td>
                        <asp:TextBox ID="txtFecha" runat="server"></asp:TextBox>
                            <asp:ImageButton ID="imgbtn_calendario" runat="server" ImageAlign="Middle" CssClass="Alertas"
                                 ImageUrl="~/Imagenes/img_Calendario.gif" ToolTip="Seleccionar una Fecha"
                                CausesValidation="False"></asp:ImageButton>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtFecha"
                                CssClass="Alertas" ErrorMessage="Ingrese fecha en formato (dd/mm/yyyy)" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                Width="1px" Display="Dynamic">*</asp:RegularExpressionValidator>
                            <cc1:CalendarExtender ID="ceFechaDesde" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgbtn_calendario"
                                PopupPosition="BottomLeft" TargetControlID="txtFecha">
                            </cc1:CalendarExtender>
                            <cc1:MaskedEditExtender ID="mee01" runat="server" TargetControlID="txtFecha" Mask="99/99/9999" MaskType="Date" ></cc1:MaskedEditExtender>
                            <asp:RequiredFieldValidator ID="rfvFecha" runat="server" ControlToValidate="txtFecha"
                                ValidationGroup="Guardar" ErrorMessage="Ingrese la fecha de asistencia">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Dirección
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtDireccion" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelefono" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Telefono
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtTelefono" runat="server" MaxLength="12"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelefono" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="txtTelefono" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Padece de enfermedad
                    </td>
                    <td class="style3">
                        <asp:RadioButtonList ID="rblSexo" runat="server">
                            <asp:ListItem Selected="True">Masculino</asp:ListItem>
                            <asp:ListItem>Femenino</asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:TextBox ID="txtEnfermedad" runat="server" TextMode="MultiLine" 
                            Width="250px" MaxLength="500"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtEnfermedad" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Tipo de sangre
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtTipoSangre" runat="server" MaxLength="4"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTipoSangre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                    </td>
                    <td class="style2">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        Información Familiar
                    </td>
                    <td class="style4">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Padre
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtPadre" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtPadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Dirección
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtDireccionPadre" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtDireccionPadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Telefono
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtTelefonoPadre" runat="server" MaxLength="12"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelefonoPadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" TargetControlID="txtTelefonoPadre" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                    <td>
                        Profesión
                    </td>
                    <td>
                        <asp:TextBox ID="txtProfesionPadre" runat="server" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtProfesionPadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Empresa
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtEmpresaPadre" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtEmpresaPadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        Tel. Empresa
                    </td>
                    <td>
                        <asp:TextBox ID="txtTelEmpresa" runat="server" MaxLength="12"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelEmpresa" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" TargetControlID="txtTelEmpresa" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                </tr>
            </table>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        Información Familiar
                    </td>
                    <td class="style4">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Madre
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtMadre" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtMadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Dirección
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtDirección" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtDirección" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Teléfono
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtTelefonoFamiliar" runat="server" MaxLength="12"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelefonoFamiliar" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender16" runat="server" TargetControlID="txtTelefonoFamiliar" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                    <td>
                        Profesión
                    </td>
                    <td>
                        <asp:TextBox ID="txtProfesionMadre" runat="server" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtProfesionMadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Empresa
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtEmpresaFamiliar" runat="server" Width="250px" MaxLength="250"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtEmpresaFamiliar" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            
                    </td>
                    <td>
                        Tel. Empresa
                    </td>
                    <td>
                        <asp:TextBox ID="txtTelEmpresaMadre" runat="server" MaxLength="12"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ErrorMessage="RequiredFieldValidator"
                            ControlToValidate="txtTelEmpresaMadre" ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender19" runat="server" TargetControlID="txtTelEmpresaMadre" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                    </td>
                </tr>
            </table>

     
            <table style="width: 100%;">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ImageButton ID="BtnNuevo" runat="server" ImageUrl="~/Imagenes/Btn_Nuevo.png"
                            Text="Reporte" Width="80px" OnClick="BtnNuevo_Click" />
                        <asp:ImageButton ID="BtnGuardar" runat="server" ImageUrl="~/Imagenes/Btn_Guardar.png"
                            Text="Buscar" Width="80px"  ValidationGroup="Guardar" 
                            onclick="BtnGuardar_Click" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>

            </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
